<?php

namespace plugin\agent\app\admin\validate;

use app\common\validate\BaseValidate;

class AgentGoodsValidate extends BaseValidate
{
    protected $rule = [
        'goods_id' => 'require',
        'goods_ids' => 'require',
        'rate' => 'require',
    ];

    protected $field = [
        'goods_id' => '商品id',
        'goods_ids' => '商品id数组',
        'rate' => '比例',
    ];
    protected $scene = [
        "add" => [
            'goods_id',
            'rate',
        ],
        "del" => [
            'goods_ids',
        ],
    ];
}